/**
 * This file is part of the educational usermanagement system.
 * 
 * Copyright (c) 2008, Florian Arndt, Thomas Kemptner, Christian Kerl, Patrick Neuberger, Marcel Rehfeld, Emal Sadran, Stefan Sauer
 * 
 * Released under the MIT License http://www.opensource.org/licenses/mit-license.php
 */

package edu.ba.management.data.search.comparer;

/**
 * The DefaultEqualityComparer is the default implementation of the
 * IEqualityComparer interface, which is used for all types that have no own
 * implementation of the interface. It uses the Object.equals method.
 */
public class DefaultEqualityComparer implements IEqualityComparer
{

    /*
     * (non-Javadoc)
     * 
     * @see edu.ba.management.data.search.comparer.IEqualityComparer#compare(java.lang.Object,
     *      java.lang.Object)
     */
    @Override
    public boolean compare(Object value, Object reference_value)
    {
        return value.equals(reference_value);
    }

}
